package com.maori.languageapp.consts;

import java.util.HashMap;
import android.graphics.Bitmap;

public class Maori_Glo_Pass {

	private static HashMap<String, Bitmap> images = new HashMap<String, Bitmap>();
	private static int[] dialects;
	
	public static synchronized void addImage(String url,Bitmap imgvw){
		if (imgvw!=null){
			images.put(url,imgvw);
		}
	}
	
	public static synchronized Bitmap getImage(String url){
			return images.get(url);
	}
	
	public static synchronized boolean imageAvailable(String url){
			if (images.get(url)!=null){
				return true;
			}else{
				return false;
			}
	}
	
	public static synchronized int getImagemapSize(){
		return images.size();
	}
	
	public static synchronized void setDialects(int[] dialect,int size){
		dialects = new int[size];
		dialects = dialect;
	}
	
	public static synchronized int[] getDialects(){
		return dialects;
	}
	
	public static synchronized int getDialectSize(){
		return dialects.length;
	}
}
